package cn.wch.ch934xlib.chip;

public enum Mode {
    NORMAL("normal",ChipParameterUtil.MODE_NORMAL),
    HARDFLOW("hardFlow",ChipParameterUtil.MODE_HARDFLOW),
    GPIO("gpio",ChipParameterUtil.MODE_GPIO);

    private String des="";
    private byte value;
    Mode(String des,byte value) {
        this.des = des;
        this.value=value;
    }

    public String getDes() {
        return des;
    }

    public byte getValue() {
        return value;
    }

    @Override
    public String toString() {
        return "Mode{" +
                "des='" + des + '\'' +
                '}';
    }
}
